import request from "@/utils/request";

// 查询变量字典列表
export function listGlobalvar(query) {
  return request({
    url: "/dmsIms/globalvar/list",
    method: "get",
    params: query,
  });
}

// 查询变量字典详细
export function interListGlobalvar(id) {
  return request({
    url: "/dmsIms/globalvar/interList/" + id,
    method: "get",
  });
}

// 查询变量字典详细
export function getGlobalvar(id) {
  return request({
    url: "/dmsIms/globalvar/" + id,
    method: "get",
  });
}

// 查询变量字典详细
export function getGlobalvarbyName(name) {
  return request({
    url: "/dmsIms/globalvar/getInfobyName/" + name,
    method: "get",
  });
}

// 新增变量字典
export function addGlobalvar(data) {
  return request({
    url: "/dmsIms/globalvar",
    method: "post",
    data: data,
  });
}

// 修改变量字典
export function updateGlobalvar(data) {
  return request({
    url: "/dmsIms/globalvar",
    method: "put",
    data: data,
  });
}

// 删除变量字典
export function delGlobalvar(id) {
  return request({
    url: "/dmsIms/globalvar/" + id,
    method: "delete",
  });
}
